<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <!-- JSON.stringify()的特性:  https://juejin.cn/post/6844904016212672519 -->
</head>

<body>

</body>
<script>
  "use strict"; {
    let json = [{
      "Id": "3972679ef2c04151972b376dd88e6413",
      "T_CourseId": "7a4494aae1804d3e94094583249750fe",
      "CourseName": "英语",
      "Code": "english"
    }, {
      "Id": "5665d803e7994b26a56c6287d12c2090",
      "T_CourseId": "75761ad2ce23498c9f9db134ab844aec",
      "CourseName": "药物化学",
      "Code": "ywhx"
    }];
    // 先将json对象转为json字符串，再替换你要替换的属性名，最后再转为json对象
    json = JSON.parse(JSON.stringify(json).replace(/CourseName/g, "title"));
    console.log(JSON.stringify(json, null, 2));
  };
</script>

</html>